package com.rest.core.dto;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * 通用返回值DTO
 * 
 * @Description:
 * @Package com.rest.core.dto.ReturnDTO
 * @author Smile- 2016年4月16日 下午11:48:49
 */
@SuppressWarnings("serial")
@XmlRootElement
public class ReturnDTO<T> implements java.io.Serializable {

	private String code;
	private String message;
	private T result;

	public ReturnDTO() {
		super();
	}

	public ReturnDTO(String code, String message, T result) {
		super();
		this.code = code;
		this.message = message;
		this.result = result;
	}

	public ReturnDTO(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getResult() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}

}
